package com.org.dto;

@lombok.Getter
@lombok.Setter
public class IdNamePair<ID, NAME> {
    private ID id;
    private NAME name;

    public IdNamePair() {

    }

    public IdNamePair(ID id, NAME name) {
        this.id = id;
        this.name = name;
    }

    public static <ID, NAME> IdNamePair<ID, NAME> of(ID id, NAME name) {
        return new IdNamePair<ID, NAME>(id, name);
    }

}
